package com.zjp.model.warhouse;

import java.util.Date;

/**
 * 仓库表
 * @author Administrator
 *
 */
public class Warhouseinfo {
	
	/**
	 * pk id
	 */
	private long id;
	/**
	 * 产品id
	 */
	private long productId;
	/**
	 * 店铺id
	 */
	private long shopId;
	/**
	 * 用户表t_user主键（仓库管理人员信息）
	 */
	private long userId;
	/**
	 * 1.商品入库；2.订单出库；3.物损出库
	 */
	private int status;
	/**
	 * 商品数量
	 */
	private int num;
	/**
	 * 库存预警阀值（比如num=10，低于5个要发预警消息，这里alertNum=5）
	 */
	private int alertNum;
	/**
	 * 创建时间
	 */
	private Date created;
	/**
	 * 修改时间
	 */
	private Date modifyd;
	/**
	 * 删除时间
	 */
	private Date deleted;
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public long getProductId() {
		return productId;
	}
	public void setProductId(long productId) {
		this.productId = productId;
	}
	public long getShopId() {
		return shopId;
	}
	public void setShopId(long shopId) {
		this.shopId = shopId;
	}
	public long getUserId() {
		return userId;
	}
	public void setUserId(long userId) {
		this.userId = userId;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public int getAlertNum() {
		return alertNum;
	}
	public void setAlertNum(int alertNum) {
		this.alertNum = alertNum;
	}
	public Date getCreated() {
		return created;
	}
	public void setCreated(Date created) {
		this.created = created;
	}
	public Date getModifyd() {
		return modifyd;
	}
	public void setModifyd(Date modifyd) {
		this.modifyd = modifyd;
	}
	public Date getDeleted() {
		return deleted;
	}
	public void setDeleted(Date deleted) {
		this.deleted = deleted;
	}
	public Warhouseinfo(long id, long productId, long shopId, long userId,
			int status, int num, int alertNum, Date created, Date modifyd,
			Date deleted) {
		super();
		this.id = id;
		this.productId = productId;
		this.shopId = shopId;
		this.userId = userId;
		this.status = status;
		this.num = num;
		this.alertNum = alertNum;
		this.created = created;
		this.modifyd = modifyd;
		this.deleted = deleted;
	}
	public Warhouseinfo() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	

}
